/**
 * create by young (young2f@outlook.com) on 2020/9/19
 */
'use strict';
import React, {Component} from 'react';
import {AutoComplete, Button, Col, Form, Input, Row, Tag, Tooltip} from 'antd';
import styles from "../../components/ProductionElement/index.less";

class AutoCompletePlus extends Component {
  constructor(props) {
    super(props);
  }

  componentDidMount() {

  }


  render() {
    let {dataSource, allowClear, addonBefore, onSelect, onSearch, onChange, defaultValue, disabled, style} = this.props;

    return (
      <tbody style={{...style}}>
      <tr>
        <th>
          <div>{addonBefore}</div>
        </th>
        <AutoComplete
          style={{width: '320%',marginLeft: '12px'}}
          disabled={disabled}
          dataSource={dataSource}
          allowClear={allowClear}
          defaultValue={defaultValue}
          onChange={onChange}
          onSelect={onSelect}
          onSearch={onSearch}></AutoComplete>
      </tr>
      </tbody>
    );
  }
}

export default AutoCompletePlus;
